package com.aspose.cells;

class zyl {
   byte a;
   Object b;
   Object c;

   String a() {
      switch(this.a) {
      case 9:
         return "<";
      case 10:
         return "<=";
      case 11:
         return "=";
      case 12:
         return ">=";
      case 13:
         return ">";
      case 14:
         return "<>";
      default:
         return "=";
      }
   }

   static Object a(Object var0, WorkbookSettings var1, boolean var2) {
      if (var0 instanceof Object[][]) {
         zyl var3 = new zyl((Object)null, var1);
         Object[][] var4 = (Object[][])((Object[][])var0);
         if (var2) {
            Object[][] var5 = new Object[var4.length][];
            int var6 = var4[0].length;

            for(int var7 = 0; var7 < var4.length; ++var7) {
               var5[var7] = new Object[var6];
               int var8;
               if (var4[var7] == null) {
                  for(var8 = 0; var8 < var6; ++var8) {
                     var5[var7][var8] = var3;
                  }
               } else {
                  for(var8 = 0; var8 < var6; ++var8) {
                     var5[var7][var8] = new zyl(var4[var7][var8], var1);
                  }
               }
            }

            return var5;
         }

         var0 = var4[0][0];
      }

      return new zyl(var0, var1);
   }

   zyl(Object var1, WorkbookSettings var2) {
      this.a(var1, var2);
   }

   private void a(Object var1, WorkbookSettings var2) {
      this.a = 11;
      this.b = var1;
      this.c = var1;
      if (var1 != null && var1 instanceof String) {
         String var3 = (String)var1;
         if (var3.length() > 0) {
            switch(var3.charAt(0)) {
            case '<':
               if (var3.length() > 1) {
                  switch(var3.charAt(1)) {
                  case '=':
                     this.a = 10;
                     var3 = var3.substring(2);
                     break;
                  case '>':
                     this.a = 14;
                     var3 = var3.substring(2);
                     break;
                  default:
                     this.a = 9;
                     var3 = var3.substring(1);
                  }
               } else {
                  this.a = 9;
                  var3 = var3.substring(1);
               }

               if (var3.length() <= 0) {
                  var3 = null;
               }
               break;
            case '=':
               this.a = 11;
               var3 = var3.substring(1);
               if (var3.length() <= 0) {
                  var3 = null;
               }
               break;
            case '>':
               if (var3.length() > 1) {
                  switch(var3.charAt(1)) {
                  case '=':
                     this.a = 12;
                     var3 = var3.substring(2);
                     break;
                  default:
                     this.a = 13;
                     var3 = var3.substring(1);
                  }
               } else {
                  this.a = 13;
                  var3 = var3.substring(1);
               }

               if (var3.length() <= 0) {
                  var3 = null;
               }
               break;
            default:
               this.a = 11;
            }

            this.b = var3;
            this.c = var3;
            if (var3 != null) {
               Object var4 = zyn.a((Object)var3, (WorkbookSettings)var2);
               if (var4 != null && var4 instanceof Double) {
                  this.b = var4;
                  this.c = var4;
               }
            }

         }
      }
   }
}
